package com.wc.alorithm_luogu.P1498;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @Author congege
 * @Description 难度不低
 * 南蛮图腾
 * https://www.luogu.com.cn/problem/P1498
 * @Date Created in 2023/9/16-14:41
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        ArrayList<StringBuffer> ans = new ArrayList<>();
        /**
         * 保存原来的
         */

        StringBuffer row1 = new StringBuffer(" /\\");
        StringBuffer row2 = new StringBuffer("/__\\");
        ans.add(row1);
        ans.add(row2);

        int size;
        for (int i = 1; i < n; i++) {
            size = ans.size();
            int blanks = (int) Math.pow(2, i);
            for (int j = 0; j < size; j++) {
                StringBuffer preRow = ans.get(j);
                StringBuffer nextRow = new StringBuffer(preRow);
                int idx = nextRow.indexOf("/");
                /**
                 * 给下一行的两个之间添加空格
                 */
                for (int k = 0; k < idx; k++) {
                    nextRow.append(' ');
                }
                nextRow.append(preRow);
                ans.add(nextRow);
                /**
                 * 给原来的行添加空格
                 */
                for (int k = 0; k < blanks; k++) {
                    preRow.insert(0, ' ');
                }
            }
        }

        size = ans.size();
        for (int i = 0; i < size; i++) {
            System.out.println(ans.get(i));
        }
    }
}
